package com.zh.factory;
import com.zh.dao.Imp.demoDaoImp;
import org.springframework.beans.factory.FactoryBean;
import com.zh.dao.demoDao;
public class demoDaoFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        return new demoDaoImp();
    }

    @Override
    public Class<?> getObjectType() {
        return demoDao.class;
    }

    public void init(){
        System.out.println("demoDao-------init");
    }
    public void destroy(){
        System.out.println("demoDao-------destroy");
    }
}
